//ex10_10_2.cpp
#include "Person.h"

Person::Person(const string &ln, const char *fn)
{
    lname = ln;
    strcpy(fname, fn);
}

void Person::Show() const
{
    if(lname == "" && fname[0] == '\0')
    {
        cout << "No name: " << '\n';
    }
    else
    {
        cout << "Person name: " << fname << ' ' << lname << '\n';
    }
}

void Person::FormalShow() const
{
    if(lname == "" && fname[0] == '\0')
    {
        cout << "No name: " << '\n';
    }
    else
    {
        cout << "Person name: "<< lname << ' ' << fname << '\n';
    }
}